package com.hst.capacity.domain.model.entity.auth;

import com.hst.capacity.domain.model.entity.DefaultEntity;
import lombok.Data;
import org.apache.ibatis.type.Alias;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.time.LocalDateTime;

@Data
@Alias("user")
@Entity
@Table(name = "t_user")
public class UserEntity extends DefaultEntity {

    private String username;

    private String userPassword;

    private int userStatus;

    private int userType;

    private String mobile;

    @Column(insertable = false)
    private LocalDateTime lastLoginTime;

    @Column(insertable = false)
    private String lastLoginIpv4;

    private String memo;

}
